#include "sdkGlobal.h"
#include "platform_global.h"

typedef struct
{
    IsSupportUpdateAidCapkFunc mIsSupportUpdateAidCapkFunc;
    TransmitAidNotifyOnlineFunc mTransmitAidNotifyOnlineFunc;
    TransmitAidUpdateOnlineFunc mTransmitAidUpdateOnlineFunc;
    TransmitAidOverOnlineFunc mTransmitAidOverOnlineFunc;
    TransmitCapkNotifyOnlineFunc mTransmitCapkNotifyOnlineFunc;
    TransmitCapkUpdateOnlineFunc mTransmitCapkUpdateOnlineFunc;
    TransmitCapkOverOnlineFunc mTransmitCapkOverOnlineFunc;
} platform_aid_capk_entity;

static platform_aid_capk_entity g_platform_aid_capk_entity;

void platform_aid_capk_init()
{
    memset(&g_platform_aid_capk_entity, 0x00, sizeof(g_platform_aid_capk_entity));
}

void platform_aid_capk_set_support_updata_func(IsSupportUpdateAidCapkFunc func)
{
    g_platform_aid_capk_entity.mIsSupportUpdateAidCapkFunc = func;
}

IsSupportUpdateAidCapkFunc platform_aid_capk_get_support_updata_func()
{
    return g_platform_aid_capk_entity.mIsSupportUpdateAidCapkFunc;
}

void platform_aid_notify_set_transmit_online_func(TransmitAidNotifyOnlineFunc func)
{
    g_platform_aid_capk_entity.mTransmitAidNotifyOnlineFunc = func;
}

TransmitAidNotifyOnlineFunc platform_aid_notify_get_transmit_online_func()
{
    return g_platform_aid_capk_entity.mTransmitAidNotifyOnlineFunc;
}

void platform_aid_update_set_transmit_online_func(TransmitAidUpdateOnlineFunc func)
{
    g_platform_aid_capk_entity.mTransmitAidUpdateOnlineFunc = func;
}

TransmitAidUpdateOnlineFunc platform_aid_update_get_transmit_online_func()
{
    return g_platform_aid_capk_entity.mTransmitAidUpdateOnlineFunc;
}

void platform_aid_over_set_transmit_online_func(TransmitAidOverOnlineFunc func)
{
    g_platform_aid_capk_entity.mTransmitAidOverOnlineFunc = func;
}

TransmitAidOverOnlineFunc platform_aid_over_get_transmit_online_func()
{
    return g_platform_aid_capk_entity.mTransmitAidOverOnlineFunc;
}


void platform_capk_notify_set_transmit_online_func(TransmitCapkNotifyOnlineFunc func)
{
    g_platform_aid_capk_entity.mTransmitCapkNotifyOnlineFunc = func;
}

TransmitCapkNotifyOnlineFunc platform_capk_notify_get_transmit_online_func()
{
    return g_platform_aid_capk_entity.mTransmitCapkNotifyOnlineFunc;
}

void platform_capk_update_set_transmit_online_func(TransmitCapkUpdateOnlineFunc func)
{
    g_platform_aid_capk_entity.mTransmitCapkUpdateOnlineFunc = func;
}

TransmitCapkUpdateOnlineFunc platform_capk_update_get_transmit_online_func()
{
    return g_platform_aid_capk_entity.mTransmitCapkUpdateOnlineFunc;
}

void platform_capk_over_set_transmit_online_func(TransmitCapkOverOnlineFunc func)
{
    g_platform_aid_capk_entity.mTransmitCapkOverOnlineFunc = func;
}

TransmitCapkOverOnlineFunc platform_capk_over_get_transmit_online_func()
{
    return g_platform_aid_capk_entity.mTransmitCapkOverOnlineFunc;
}
